<?php defined('BASEPATH') OR exit('No direct script access allowed');

class dashboard extends wsBackend
{

    public function index()
    {
        $data = array();

        $this->tpl->meta ['title'] = '图片系统管理后台 - ' . $this->config->item('site_name');
        $this->tpl->meta ['description'] = '';
        $this->tpl->meta ['keywords'] = '';
        $this->tpl->page_header = '图片系统管理后台';
        $this->tpl->page_header_ = '我很正经';
        $this->tpl->breadcrumbs['图片系统管理后台'] = 'active';


        $this->tpl->contents [] = $this->tpl->fetch('contents/dashboard', $data);
        $this->tpl->render();
    }

    public function logout()
    {
        $this->user->logOut();
        redirect(admin_url());
    }
}
